package com.cb.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cb.admin.domain.RoleInfo;
import com.cb.admin.mapper.IRoleInfoMapper;
import com.cb.admin.service.IRoleInfoService;

@Service
public class RoleInfoServiceImpl implements IRoleInfoService {
	
	@Autowired
	private IRoleInfoMapper roleInfoMapper;

	@Override
	public RoleInfo queryById(int id) {
		// TODO Auto-generated method stub
		return roleInfoMapper.queryById(id);
	}

	@Override
	public List<RoleInfo> getListAll() {
		// TODO Auto-generated method stub
		return roleInfoMapper.getListAll();
	}

	@Override
	public int queryByName(String name) {
		// TODO Auto-generated method stub
		return roleInfoMapper.queryByName(name);
	}

	@Override
	public List<RoleInfo> query(RoleInfo role) {
		// TODO Auto-generated method stub
		return roleInfoMapper.query(role);
	}

	@Override
	public int querySize(RoleInfo role) {
		// TODO Auto-generated method stub
		return roleInfoMapper.querySize(role);
	}

	@Override
	public int insert(RoleInfo roleInfo) {
		// TODO Auto-generated method stub
		return roleInfoMapper.insert(roleInfo);
	}

	@Override
	public void update(RoleInfo roleInfo) {
		// TODO Auto-generated method stub
		roleInfoMapper.update(roleInfo);
	}

	@Override
	public void deleteById(int id) {
		// TODO Auto-generated method stub
		roleInfoMapper.deleteById(id);
	}
}